package com.le.buddha.common;

import lombok.Data;

@Data
public class SocketResponse {
    private Integer messageType;
    private String msg;
    private Object data;

    public static SocketResponse success(Object data,Integer messageType) {
        SocketResponse response = new SocketResponse();
        response.setMsg("success");
        response.setData(data);
        response.setMessageType(messageType);
        return response;
    }
}
